<?php
// +----------------------------------------------------------------------
// | OpenCMF [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.lingyun.net All rights reserved.
// +----------------------------------------------------------------------
// | Author: jry <598821125@qq.com>
// +----------------------------------------------------------------------
namespace Yiban\Controller;

use Common\Util\Think\Page;
use Home\Controller\HomeController;

/**
 * 默认控制器
 * @author jry <598821125@qq.com>
 */
class JobsController extends HomeController
{

    /**
     * 用户列表
     * @author jry <598821125@qq.com>
     */
    public function index($user_type = 1)
    {
        $User = M('yibanJobs');
        $list = $User->limit(1)->order('myorder desc,id desc')->select();

        $this->assign('list',$list);
        $list2= $User->order('myorder desc,id desc')->select();
        unset($list2[0]);
        $this->assign('list2',$list2);
        $this->display();
    }

}
